﻿using Nirvana;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class TestBindEvent : MonoBehaviour {
    [SerializeField]
    UIEventTable table;
    [SerializeField]
    BezierSpline bz;
    [SerializeField]
    [LayerMask]
    private int layerMask;
    [SerializeField]
    [Layer]
    private int layer;

    // Use this for initialization
    void Start () {
        table.ListenEvent("OnTest", (args) =>
        {
            Debug.Log("OnTest Click");
        });

        table.ListenEvent("OnDropDown", (args) => {
            Debug.Log("OnDropDown Click:"+ args[0]);
        });

        table.ListenEvent("OnInputChange", (args) => {
            Debug.Log("OnInputChange Click:" + args[0]);
        });

        table.ListenEvent("OnEndInput", (args) => {
            Debug.Log("OnEndInput Click:" + args[0]);
        });
        table.ListenEvent("OnInputKeyCode", (args) => {
            Debug.Log("OnInputKeyCode Click:" + args[0]);
        });

        table.ListenEvent("OnSlider", (args) => {
            Debug.Log("OnSlider :" + args[0]);
        });

        table.ListenEvent("OnToggle", (args) => {
            Debug.Log("OnToggle :" + args[0]);
        });

        table.ListenEvent("OnTouchDown", (args) => {
            Debug.Log("OnTouchDown :");
        });

        table.ListenEvent("OnTouchUp", (args) => {
            Debug.Log("OnTouchUp :");
        });

        bz.ChangedEvent += () => {
            Debug.Log("ChangedEvent :");
        };
    }
	

}
